<template>
  <div :class="$store.state.appPrefix + '-c-menus-mini'">
    <div class="menus-inner">
      <div v-for="(it, i) in menus" :key="i" :class="['menus-item', {'is-active': it.isActive}]" @click="$handleMenuClick(it)">{{it.title}}</div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    menus: {
      type: Array,
      default: () => []
    }
  },
  data() {
    return {

    }
  },
  methods: {
    $handleMenuClick(it) {
      this.$emit('menu-click', it);
    }
  },
}
</script>
